package com.zm.demo.shoppingmall.storage.model;

import java.io.Serializable;
import java.time.LocalDateTime;

public class TStorage implements Serializable {
    private Integer id;

    private String productName;

    private String productNo;

    private LocalDateTime storageDateStart;

    private LocalDateTime storageDateEnd;

    private Integer totalCnt;

    private Integer lockCnt;

    private Integer availableCnt;

    private Integer todaySelledCnt;

    private Integer totalSelledCnt;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName == null ? null : productName.trim();
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo == null ? null : productNo.trim();
    }

    public LocalDateTime getStorageDateStart() {
        return storageDateStart;
    }

    public void setStorageDateStart(LocalDateTime storageDateStart) {
        this.storageDateStart = storageDateStart;
    }

    public LocalDateTime getStorageDateEnd() {
        return storageDateEnd;
    }

    public void setStorageDateEnd(LocalDateTime storageDateEnd) {
        this.storageDateEnd = storageDateEnd;
    }

    public Integer getTotalCnt() {
        return totalCnt;
    }

    public void setTotalCnt(Integer totalCnt) {
        this.totalCnt = totalCnt;
    }

    public Integer getLockCnt() {
        return lockCnt;
    }

    public void setLockCnt(Integer lockCnt) {
        this.lockCnt = lockCnt;
    }

    public Integer getAvailableCnt() {
        return availableCnt;
    }

    public void setAvailableCnt(Integer availableCnt) {
        this.availableCnt = availableCnt;
    }

    public Integer getTodaySelledCnt() {
        return todaySelledCnt;
    }

    public void setTodaySelledCnt(Integer todaySelledCnt) {
        this.todaySelledCnt = todaySelledCnt;
    }

    public Integer getTotalSelledCnt() {
        return totalSelledCnt;
    }

    public void setTotalSelledCnt(Integer totalSelledCnt) {
        this.totalSelledCnt = totalSelledCnt;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", productName=").append(productName);
        sb.append(", productNo=").append(productNo);
        sb.append(", storageDateStart=").append(storageDateStart);
        sb.append(", storageDateEnd=").append(storageDateEnd);
        sb.append(", totalCnt=").append(totalCnt);
        sb.append(", lockCnt=").append(lockCnt);
        sb.append(", availableCnt=").append(availableCnt);
        sb.append(", todaySelledCnt=").append(todaySelledCnt);
        sb.append(", totalSelledCnt=").append(totalSelledCnt);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}